package com.example.shardingjdbc;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author zbm
 * @date 2024/3/1410:08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sensor_data")
public class SensorDataDO {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    private String sensorId;


    private BigDecimal water;

    private Date createTime;
}

